ifeq ($(PARAM_FILE), )
    PARAM_FILE:=/home/share/work/camera/hi3519dv500_sdk/Hi3519DV500_SDK_V2.0.1.1/smp/a55_linux/source/Makefile.param
    include $(PARAM_FILE)
endif

ifeq ($(MPP_BUILD), y)
CFLAGS += -I$(SOURCE_PATH)/common/include -I$(CBB_ROOT)/include
else
CFLAGS += -I$(REL_INC)
endif

CFLAGS += -I$(OSAL_ROOT)/include -I../../
CFLAGS += -fstack-protector-all    # SP
CFLAGS += -pie -fPIE               # PIE
CFLAGS += -s                       # STRIP
LIB_CFLAGS += -Wl,-z,relro,-z,now  # BIND NOW

default:
	$(CC) -Wall -O2 $(CFLAGS) $(LIB_CFLAGS) adc.c -o adc -lpthread -lm -ldl

clean:
	@rm -rf adc *.o
